﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LifeTree.DomainModel.Repositories;
using LifeTree.DomainModel.Entities;

namespace LifeTree.EntityFrameworkProvider.Repositories
{
    public class WorkbookRepository : GenericRepository<Workbook>, IWorkbookRepository
    {
        public WorkbookRepository(ILifeTreeContext dataContext)
            : base(dataContext)
        {
        }

        public Workbook GetByName(string name)
        {
            return base.DbSet.FirstOrDefault(w => w.Name == name);
        }
    }
}
